package com.thenie.service;

import com.thenie.pojo.Room;
import com.thenie.vo.RoomVo;

import java.util.List;

public interface RoomService {
    /**
     * 查询房间列表
     * @param roomVo
     * @return
     */
    public List<Room> findRoomList(RoomVo roomVo);

    /**
     * 插入一条房间数据
     * @param room
     * @return
     */
    public int addRoom(Room room);

    /**
     * 修改房间数据
     * @param room
     * @return
     */
    public int updateRoom(Room room);

    /**
     * 删除一个房间
     * @param id
     * @return
     */
    public int deleteRoom(int id);

    /**
     * 根据楼层id查询房间集合
     * @param floorId
     * @return
     */
    public List<Room> findRoomByFloorId(int floorId);

    public Room roomInfo(Integer roomId);
}
